﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Services;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FIM_MoneyRequestDtls : System.Web.Services.WebService
    {
        IBLL_FIM_MoneyRequestDtls bll = new B_FIM_MoneyRequestDtls();

        [WebMethod]
        public List<M_FIM_MoneyRequestDtls> GetFull(string money_req_seq)
        {
            return (List<M_FIM_MoneyRequestDtls>)bll.GetFull(money_req_seq);
        }

        [WebMethod]
        public List<M_FIM_MoneyRequestDtls> GetList(string money_req_seq)
        {
            return (List<M_FIM_MoneyRequestDtls>)bll.GetList(money_req_seq);
        }

        [WebMethod]
        public List<M_FIM_MoneyRequestDtls> GetExpFromProject(string bgm_proj_oper_seq
            , string bgm_source_seq, string bgm_exp_grp_seq, string money_req_seq)
        {
            return (List<M_FIM_MoneyRequestDtls>)bll.GetExpFromProject(bgm_proj_oper_seq
            , bgm_source_seq, bgm_exp_grp_seq, money_req_seq);
        }

        [WebMethod]
        public double GetExpInApproveProcess(string bgm_proj_oper_seq
            , string bgm_source_seq, string bgm_exp_grp_seq, string money_req_seq)
        {
            return bll.GetExpInApproveProcess(bgm_proj_oper_seq
            , bgm_source_seq, bgm_exp_grp_seq, money_req_seq);
        }

        [WebMethod]
        public List<M_BGM_MAS_Expense> GetExpList(string money_req_seq)
        {
            return (List<M_BGM_MAS_Expense>)bll.GetExpList(money_req_seq);
        }

        //[WebMethod]
        //public string SelectRecentInsertedRoleSeq()
        //{
        //    return bll.SelectRecentInsertedRoleSeq();
        //}

        //[WebMethod]
        //public List<M_FIM_MoneyRequests> GetList(string strBgmSourceSeq, string strBgmYear
        //    , string work_area_seq, string event_seq, string contact_seq, string emp_seq, string filter)
        //{
        //    return (List<M_FIM_MoneyRequests>)bll.(bgm_source_seq, bgm_year, work_area_seq
        //        , event_seq, contact_seq, emp_seq, filter);
        //} 

        [WebMethod]
        public M_FIM_MoneyRequestDtls GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        [WebMethod]
        public string Insert(M_FIM_MoneyRequestDtls info)
        {
            return bll.Insert(info);
        }

        [WebMethod]
        public void Update(M_FIM_MoneyRequestDtls info)
        {
            bll.Update(info);
        }

        [WebMethod]
        public void Delete(M_FIM_MoneyRequestDtls info)
        {
            bll.Delete(info);
        }

        private void InitializeComponent()
        {

        }
    }
}
